package code.vo {

[Bindable]
public class User {
	
	public var userId: int;
	
	public var username: String;
	
	public function User(userId: int, username: String) {
		this.userId = userId;
		this.username = username;
	}

	public static function newByXml(xml: Object): User {
		return new User(int(xml.UserId), String(xml.Username));
	}
}
}